<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<script type="text/javascript">

var date  = new Date();
//alert(date.getFullYear());

//eval("alert(1+5);");

Date.prototype.price=20;

alert(date.price)

Date.prototype.fy=function getfy()
{
	//alert("新的函数测试");
	//alert(this);
	//return alert(this.getFullYear());
	event = event?event:window.event;
	var object = event.srcElement?event.srcElement:event.target;
	alert(object)
}

date.fy();

function Person(name,age)
{
	this.name= name;
	this.age = age;
	this.changeName= changeName;
	function changeName(name)
	{
		this.name= name;
	}
}

/*
var p1 = new Person("qaz",11);

alert(p1.name+"\t"+p1.age);

p1.changeName("wsx");

alert(p1.name+"\t"+p1.age);
*/
function ad()
{
	return arguments[0]+arguments[1];
}

//alert(ad(1,2));

String.prototype.trim()
{

}

</script>
</body>
</html>
